package com.yiwu.common.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @TableName Chat_message
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "Chat_message")
@Data
public class ChatMessage extends Model<ChatMessage> {
    /**
     *
     */
    private String mid;

    /**
     *
     */
    private String sessionId;

    /**
     *
     */
    private Integer messageType;


    private String messageContent;

    /**
     * 发送者ID
     */
    private Long senderId;

    /**
     * 接收者ID
     */
    private Long receiverId;

    /**
     *
     */
    private Long sendTime;

    /**
     *
     */
    private Long fileSize;

    /**
     *
     */
    private Integer fileType;

    /**
     *
     */
    private String fileName;

    /**
     *
     */
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}